home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 3 / The Arsenal Files 3.iso / basic / setupk1.exe / SETUPK.TXT < prev    next >
Text File  |  1994-06-27  |  24KB  |  473 lines

  1. UPD: New Setup Toolkit & Setup Wizard Available for VB ver 3.0  
  2. ID: Q100003     
  3.  
  4. --------------------------------------------------------------------- 
  5. The information in this article applies to: 
  6.  
  7. - Microsoft Visual Basic programming system for Windows, version 3.0 
  8. --------------------------------------------------------------------- 
  9.  
  10. SUMMARY 
  11. ======= 
  12.  
  13. Several bugs were fixed in the Visual Basic Setup Toolkit and Setup 
  14. Wizard after Visual Basic version 3.0 was released. The latest release 
  15. of each of these updated files (version 1.00.002 of SETUP.EXE, version 
  16. 1.00.002 of the Setup1 project files, and version 1.00.551 of the Setup 
  17. Wizard) can be found in the self-extracting file SETUPK.EXE. 
  18.  
  19. Download SETUPK.EXE, a self-extracting file, from the Microsoft Software 
  20. Library (MSL) on the following services: 
  21.  
  22.  - CompuServe 
  23.       GO MSL 
  24.       Search for SETUPK.EXE 
  25.       Display results and download 
  26.  
  27.  - Microsoft Download Service (MSDL) 
  28.       Dial (206) 936-6735 to connect to MSDL 
  29.       Download SETUPK.EXE 
  30.  
  31.  - Internet (anonymous FTP) 
  32.       ftp ftp.microsoft.com 
  33.       Change to the \softlib\mslfiles directory 
  34.       Get SETUPK.EXE 
  35.  
  36. MORE INFORMATION 
  37. ================ 
  38.  
  39. The following sections outline the bugs that were fixed and give 
  40. specific instructions on how to install the updated files. 
  41.  
  42. INSTALLATION 
  43. ------------ 
  44.  
  45. Copy the following files to the following locations on top of the 
  46. existing files by the same name. (This assumes that you have installed 
  47. Visual Basic in to the default directory C:\VB and Microsoft Windows in 
  48. the C:\WINDOWS 
  49. directory). 
  50.  
  51.     SETUP.EXE         ->  C:\VB\SETUPKIT\KITFILES\SETUP.EXE 
  52.     SETUP1.FRM        ->  C:\VB\SETUPKIT\SETUP1\SETUP1.FRM 
  53.     SETUP1.FRX        ->  C:\VB\SETUPKIT\SETUP1\SETUP1.FRX 
  54.     SETUP1.BAS        ->  C:\VB\SETUPKIT\SETUP1\SETUP1.BAS 
  55.     SETUPWIZ.EXE      ->  C:\VB\SETUPKIT\KITFILES\SETUPWIZ.EXE 
  56.     SETUPWIZ.INI      ->  C:\WINDOWS\SETUPWIZ.INI 
  57.                         and/or C:\VB\SETUPKIT\KITFILES\SETUPWIZ.INI 
  58.  
  59.     NOTE: Please update lines 2 through 5 of the SETUPWIZ.INI file 
  60.           to appropriately reflect the directory that you installed  
  61.           Visual Basic in if it is different than C:\VB. 
  62.  
  63. NEW 
  64. --- 
  65.  
  66. Included in SETUPK.EXE is file WW1000.EXE, which has been available 
  67. separately in the Microsoft Software Library.  It is a self extracting 
  68. ZIP file containing 2 files:  README.TXT AND VSHARE.386. VSHARE.386 
  69. eliminates the need for SHARE.EXE when you run Windows 3.1 in 386 
  70. enhanced mode.  README.TXT is an Application Note describing the 
  71. installation and use of VSHARE.386.  The installation of VSHARE.386 
  72. eliminates all known sharing violation errors when using the Setup 
  73. Wizard to create installation disks (See the PROBLEMS/LIMITATION section 
  74. later in this document).   VSHARE.386 is currently provided as a  
  75. component of Windows for Workgroups 3.1 and 3.11. 
  76.  
  77. NOTE:  VSHARE.386 is exclusively a Windows utility.  If you need a file 
  78. sharing utility under DOS, you will still need to use SHARE.EXE. 
  79.  
  80.  
  81. Distribution 
  82. ------------ 
  83.  
  84. You can distribute these files royalty free with any Visual Basic 
  85. application that you create. 
  86.  
  87. Setup Wizard Notes 
  88. ------------------ 
  89.  
  90. To check the internal version number of your SETUPWIZ.EXE, open a copy 
  91. of the file in an editor, and search for the string "ver:" This will 
  92. show the version number. Visual Basic version 3.0 for Windows shipped 
  93. with SETUPWIZ.EXE version 1.00.532. 
  94.  
  95. Version      Bugs Fixed 
  96. ------------ -------------------------------------------------------- 
  97. 1.00.533     When using "Save Template," you must enter a file name 
  98.              with extension. The extension is no longer required. 
  99. 1.00.533     The "max" setting for the horizontal scrollbar on the Step 
  100.              Five screen is so large that the middle button of the 
  101.              scroll bar really can't be used. The max has been reset to 
  102.              a smaller value. 
  103. 1.00.533     The standard command .PIF file may not have the EXECUTION = 
  104.              EXCLUSIVE on some computers. As a result, the DOS shells 
  105.              for compressing files may sit in the background. Now shell 
  106.              with parameter makes the task active with focus. 
  107. 1.00.534     Minor tweaks to the user interface to widen the TEMPLATE 
  108.              buttons, added an accelerator to the R in Rebuild, and 
  109.              changed the accelerator in Exit to the 'x' key. 
  110. 1.00.535     Start SetupWiz. Enter C:\. Click NEXT. This causes an 
  111.              untrapped error: "Path/file access error." 
  112. 1.00.536     Removed line FILE10=OLE2UI.DLL under the [MSOLE2.VBX] 
  113.              section in SETUPWIZ.INI. 
  114. 1.00.536     Try using Setup Wizard to create setup disks for the 
  115.              OLE2DEMO sample application after removing the OLE2UI entry 
  116.              from SETUPWIZ.INI. In step 2, select OLE. The Next button 
  117.              doesn't work. The Back button does work, and the Next 
  118.              button works if nothing is selected in step 2. The Finish 
  119.              button also works. This problem affected any OLE 
  120.              application. 
  121. 1.00.537     Selecting more than 40 files with the Common Dialog during 
  122.              ADD FILES was not handled before. Now it is. 
  123. 1.00.538     Cleaned up the MSOLE2.VBX and OLE Automation sections in 
  124.              SETUPWIZ.INI. 
  125. 1.00.539     A PATH pointing to non-existing directories or drives 
  126.              resulted in a "User-defined error." Now Setup Wizard 
  127.              returns the correct error message and continues. 
  128. 1.00.542     Fixed compression problems when running under Windows NT. 
  129. 1.00.543     Fixed an invalid keyword in some common dialogs that asked 
  130.              where a file is located. 
  131. 1.00.543     Fixed problem: if a template's .EXE file was deleted or 
  132.              moved. 
  133. 1.00.544     SetupWizard incorrectly added VER.DL_ to the SETUP.LST 
  134.              file. Setup Wizard no longer adds this file to SETUP.LST. 
  135. 1.00.545     SETUPWIZ.INI added two files to the CRYSTAL.VBX section. 
  136. 1.00.546     Fixed problem where after adding files in step 5, you can 
  137.              get a "File not Found" or "Compress error." 
  138. 1.00.546     Fixed problem where after deleting your project's EXE 
  139.              (such as MYAPP.EXE), you'd get an "Illegal function call in 
  140.              CreateVBSetup1." 
  141. 1.00.547     Fixed problem where MYAPP.EXE in same dir as MAK file, 
  142.              and PATH= in MAK file points to different drive.  Thus 
  143.              wrong file was added to list. 
  144. 1.00.548     Fixed problem when a compressed file is larger than 1.2 
  145.              meg. This fix also requires 4 changes in the SETUP1.MAK 
  146.              project. 
  147. 1.00.548     Fixed problem when SETUP1.MAK has a .VBX or .DLL file. 
  148. 1.00.548     Fixed problem where after adding multiple files, another 
  149.              'point to a file' dialog came up asking for a support file 
  150.              location resulting in a path with no filename is listed in 
  151.              the file distribution box. 
  152. 1.00.549     Fixed problems where SETUP1.FRM grows beyond an assumed 
  153.              size. SetupWizard is now not dependent on SETUP1.FRM's 
  154.              size. 
  155. 1.00.550     Fix to the SETUP1.MAK files for concatenating split files  
  156.              back together. 
  157. 1.00.551     Changed caption of Financial Functions checkbox to IFF & 
  158.          Financial Functions 
  159. 1.00.551     Fixed problem where a project with many files would cause a 
  160.          Disk Full error on distribution disk 1. 
  161.  
  162.  
  163. SETUP.EXE Notes 
  164. --------------- 
  165.  
  166. To check the internal version number of your SETUP.EXE, open a copy of 
  167. the file in an editor, and search for the string "FileVersion" to show 
  168. the version number. Note, This version information was added only after 
  169. version 1.00.002. 
  170.  
  171. Version    Bug Fix/Feature              Comments 
  172. --------------------------------------------------------------------- 
  173. 1.00.002   VER.DLL is truncated to      SETUP.EXE now checks to see 
  174.            zero bytes if it is not      if VER.DL_ exists on  your 
  175.            found or has an incorrect    distribution disk. If it is 
  176.            name on the distribution     not found, the following error 
  177.            disk.                        error is displayed and then 
  178.                                         SETUP.EXE terminates: 
  179.                                         "Error - File not found: 
  180.                                         A:\VER.DL_. This file is 
  181.                                         required by Setup." 
  182.  
  183. 1.00.002   SETUP.EXE does not run       When running SETUP.EXE in 
  184.            in Windows version 3.0.      Microsoft Windows version 3.0, 
  185.                                         you will receive the error "This 
  186.                                         application requires a newer 
  187.                                         version of Windows."  This error 
  188.                                         causes SETUP.EXE to terminate. 
  189.                                         This bug has been fixed so that 
  190.                                         SETUP.EXE will run successfully 
  191.                                         in Microsoft Windows version 
  192.                                         3.0. 
  193.  
  194. 1.00.002   The Visual Basic version     This problem occurs because 
  195.            3.0 THREED.VBX does not      the file type of THREED.VBX 
  196.            overwrite the Visual Basic   changed from "APP" to "DLL" 
  197.            version 2.0 THREED.VBX.      between version 2.0 and 3.0. 
  198.                                         SETUP.EXE now ignores file 
  199.                                         type differences and will 
  200.                                         install any file where the 
  201.                                         source and destination names 
  202.                                         are the same when the source 
  203.                                         file is the same or a newer 
  204.                                         version. 
  205.  
  206. 1.00.002   This error message:          The error messages are now 
  207.            "Could not open or read      "Error - Could not open file: 
  208.            file: <filename>" was        <filename>" and "Error - Could 
  209.            replaced with two            not read file: <filename>." 
  210.            separate error messages.     Both errors cause SETUP.EXE to 
  211.                                         terminate. 
  212.  
  213. 1.00.002   New error message added:     The new error message replaces: 
  214.            "Error - Insufficient        "Error - Could not copy file: 
  215.            disk space on drive          <source filename> -> 
  216.            <drive letter>:" This        <destination filename>" 
  217.            error causes SETUP.EXE       when there is insufficient 
  218.            to terminate.                disk space. 
  219.  
  220. 1.00.002   Version information was      The version number 1.00.002 
  221.            added to SETUP.EXE.          was added to SETUP.EXE. 
  222.                                         Previous versions of SETUP.EXE 
  223.                                         have no version number. 
  224.  
  225. 1.00.003   Running SETUP.EXE            This problem has been fixed so 
  226.            version 1.00.002 from a      that you can run SETUP.EXE from 
  227.            subdirectory causes          a subdirectory. SETUP.EXE 
  228.            "Error - Could not open      provided with Visual Basic 
  229.            file: <path name> SETUP.LST  version 3.0 does not have this 
  230.                                         problem. 
  231.  
  232. 1.00.003  VER.DL_ on distribution       SETUP.EXE now copies VER.DL_ 
  233.           disk does not copy over       when the file/date time stamp of 
  234.           VER.DLL in destination        the destination VER.DLL file is 
  235.           directory if the file date/   the same. 
  236.           time stamp is the same for 
  237.           both files. 
  238.  
  239. 1.00.004  A  "Cannot copy file ..."     SETUP.EXE no longer gives an 
  240.           error message occurs when     error when the source file has 
  241.           attempting to copy a file     an older version number than 
  242.           referenced in SETUP.LST that  the destination file. 
  243.           has an older version number 
  244.           than the same file on the 
  245.           destination drive.  This 
  246.           error causes SETUP.EXE to 
  247.           terminate. 
  248.  
  249. 1.00.004  SETUP.EXE copies over the     SETUP.EXE no longer attempts to 
  250.           same or older version of      copy VER.DLL if it is already in 
  251.           VER.DLL if it is in use       use.  It assumes that it can use 
  252.           by another application such   an older version of VER.DLL if 
  253.           as File Manager.  This can    it exists and is in use. 
  254.           lead to a General Protection 
  255.           Fault (GP fault). 
  256.  
  257. SETUP1 Project Files Notes 
  258. -------------------------- 
  259.  
  260. To check the internal version number of the Setup1 project files, check 
  261. the general declarations section of SETUP1.FRM.  Note, This version 
  262. information was added only after version 1.00.002 of the Setupkit. 
  263.  
  264. Version  Bug                               Comments 
  265. -------- --------------------------------- ----------------------------- 
  266. 1.00.001 SETUP1.EXE fails to copy the      This problem occurs because  
  267.          Visual Basic version 3.0          the file type of THREED.VBX c 
  268.          THREED.VBX over the Visual        changed from APP to DLL 
  269.          Basic version 2.0 THREED.VBX.     between Visual Basic versions 
  270.                                            2.0 and 3.0. 
  271.                                            The CopyFile function in 
  272.                                            SETUP1.BAS was modified so  
  273.                                            that any file will be copied 
  274.                                            regardless of its type as  
  275.                                            long as the source file is  
  276.                                            the same or newer version  
  277.                                            when compared to the  
  278.                                            destination file. 
  279.  
  280. 1.00.001 SETUP1.EXE fails when attempting  A problem in  
  281.          to show a Program Manager group   CreateProgManItem when  
  282.          under Norton Desktop              executing the ShowGroup DDE  
  283.                                            command causes SETUP1.EXE to  
  284.                                            fail under Norton Desktop.  
  285.                                            The syntax on the call to the 
  286.                                            ShowGroup DDE command was 
  287.                                            fixed to overcome this  
  288.                                            problem. 
  289.  
  290. 1.00.001 Unnecessary code included in      SETUP1.FRM contains code that 
  291.          Form_Load event procedure of      has been disabled by making  
  292.          SETUP1.FRM.                       it into a comment. This code 
  293.                                            was useful in the Visual  
  294.                                            Basic version 1.0 of the  
  295.                                            Setup Toolkit. However, the  
  296.                                            features demonstrated by this  
  297.                                            code were removed from the  
  298.                                            Visual Basic version 2.0 and  
  299.                                            3.0 Setup Toolkit. This code   
  300.                                            was removed. 
  301.  
  302. 1.00.001 Incorrect references to           Messages containing  
  303.          "Test Application"                references to "Test  
  304.                                            Application" were changed to  
  305.                                            reference the actual name of  
  306.                                            the application. 
  307.  
  308. 1.00.002 Setup Wizard is not able to       Changes to the Setup Wizard 
  309.          break large files (greater        version 1.00.548 to fix this 
  310.          than 1.2 meg in size)             problem required changes to 
  311.          across multiple disks             the CopyFile and  
  312.                                            ConcatSplitFiles routines in  
  313.                                            SETUP1.BAS. 
  314.  
  315. 1.00.002 A version number was added        Check the general  
  316.          to a comment in the general       declarations section of  
  317.          declarations section of           SETUP1.FRM to determine the 
  318.          SETUP1.FRM.                       current version number of  
  319.                                            SETUP1. 
  320.  
  321. ------------------------------------------------------------------------ 
  322. Below are the changes that were made to the CopyFile and 
  323. ConcateSplitFiles 
  324. routines in SETUP1.BAS 
  325. ------------------------------------------------------------------------ 
  326.  
  327. Old SETUP1 Code 
  328. --------------- 
  329.  
  330. In Function CopyFile: 
  331.    If InFileVer$ <= OutFileVer$ Then 
  332.  
  333. In Sub ConcatSplitFiles: 
  334.         CopyLeftOver& = outfileLen& Mod 10 
  335.         CopyChunk# = (outfileLen& - CopyLeftOver&) / 10 
  336.         filevar$ = String$(CopyLeftOver&, 32) 
  337.         Get #fh2%, , filevar$ 
  338.         Put #fh1%, , filevar$ 
  339.         filevar$ = String$(CopyChunk#, 32) 
  340.         iFileMax% = 10 
  341.  
  342. New SETUP1 Code 
  343. --------------- 
  344.  
  345. In Function CopyFile: 
  346.    If InFileVer$ <= OutFileVer$ And SourcePath <> DestinationPath Then 
  347.  
  348. In Sub ConcatSplitFiles: 
  349.         CopyLeftOver& = outfileLen& Mod 100 
  350.         CopyChunk# = (outfileLen& - CopyLeftOver&) / 100 
  351.         filevar$ = String$(CopyLeftOver&, 32) 
  352.         Get #fh2%, , filevar$ 
  353.         Put #fh1%, , filevar$ 
  354.         filevar$ = String$(CopyChunk#, 32) 
  355.         iFileMax% = 100 
  356.  
  357. PROBLEMS/LIMITATIONS 
  358. -------------------- 
  359.  
  360.  - COMPRESS.EXE will take only a limited length command line. If 
  361.    SetupWizard is in a subdirectory that is nested too deep, COMPRESS 
  362.    will not work correctly. You encounter a 'File does not exist' error 
  363.    when the file does exist. To work around this problem, move the 
  364.    SETUPKIT subdirectory up one or more directory levels until COMPRESS 
  365.    works. 
  366.   
  367. -  The Setup Wizard requires that your <appname>.EXE file completely  
  368.    reside on the first distribution disk.  It will not split this file.   
  369.    If <appname>.EX_ is too large to fit on the first disk, an error will  
  370.    occur.  To work around this problem perform the following steps: 
  371.  
  372.    1. Start Visual Basic and create a temporary project file,  
  373.       <apptemp>.MAK, containing one codeless form and no custom  
  374.       controls.  Save the project, create the <apptemp>.EXE file, and  
  375.       exit Visual Basic. 
  376.    2. Run the Setup Wizard specifying <apptemp>.MAK, adding your real  
  377.       project EXE file and all of the required supporting files during  
  378.       step 5 to create installation disks. 
  379.    3. Start Visual Basic and open the SETUP1A.MAK project file in the 
  380.       \VB\SETUPKIT\KITFILES directory and modify the Form_Load 
  381.       procedure in SETUP1A.FRM as follows: 
  382.      - Delete the following line: 
  383.         If Not CopyFile(SourcePath$, destPath$, "<apptemp>.EX_",  
  384.                 "<apptemp>.EXE") Then GoTo ErrorSetup 
  385.      - Change the file name <apptemp>.EX_ in the following statement 
  386.         If Not PromptForNextDisk(1, SourcePath$ + "<apptemp>.EX_") 
  387.            Then GoTo ErrorSetup 
  388.        to the name of another file found of the first distribution disk,  
  389.        such as SETUP1.EX_. 
  390.         If Not PromptForNextDisk(1, SourcePath$ + "SETUP1.EX_") 
  391.            Then GoTo ErrorSetup 
  392.      - Create a new SETUP1.EXE  
  393.    4. Shell out to DOS \VB\SETUPKIT\SETUP1 directory and compress  
  394.       SETUP1.EXE using the following command: 
  395.        \VB\SETUPKIT\KITFILES\COMPRESS SETUP1.EXE -R  
  396.    5. Copy your new SETUP1.EX_ onto your first distribution disk. 
  397.  
  398. -  The Setup Wizard will not write to an install disk which has damaged  
  399.    sectors, even if there is room for the project on it.  This behavior  
  400.    is by design. 
  401.  
  402. -  The Setup Wizard will not split a file into more than 9 pieces.  If  
  403.    you need to ship a file that large, you need to use another method to  
  404.    store the file. 
  405.  
  406. -  On step 1 of the Setup Wizard selecting a valid MAK file using common  
  407.    dialog and then resetting it to C:\. causes an untrapped fatal error.   
  408.    This problem only occurs when the 'Select MAK file' option is used  
  409.    and the result is modified.  This problem does not occur if the  
  410.    'Select MAK file' option is not used. 
  411.  
  412. -  On step 5 of the Setup Wizard adding a large number of files, such as  
  413.    the entire Windows directory, using the common dialog box does not  
  414.    add any file names, places a pause symbol (sideways =) in the list  
  415.    and does not generate an error message.  This is due to exceeding a  
  416.    buffer size limitation.  The bogus item may be deleted without  
  417.    consequence. 
  418.  
  419. -  The Setup Wizard does not correctly handle files with names that are  
  420.    identical except for the last letter, such as FORM1.FRM & FORM1.FRX.   
  421.    When it compresses the second file, it does not check to determine if 
  422.    a file of that name (FORM1.FR_) already exists.  To work around this  
  423.    problem, it is necessary to rename files that will cause this error  
  424.    before they are compressed, such as to FORM1X.FRX.  Create the  
  425.    distribution disks and do the following: 
  426.    1. Start Visual Basic and open the SETUP1A.MAK project file in the 
  427.       \VB\SETUPKIT\KITFILES directory and modify the Form_Load 
  428.       procedure in SETUP1A.FRM as follows: 
  429.      - Change the file name FORM1X.FRX in the following statement 
  430.         If Not CopyFile(SourcePath$, destPath$, "FORM1X.FR_",  
  431.                 "FORM1X.FRX") Then GoTo ErrorSetup 
  432.        to the correct file name, FORM1.FRX 
  433.         If Not CopyFile(SourcePath$, destPath$, "FORM1X.FR_",  
  434.                 "FORM1.FRX") Then GoTo ErrorSetup 
  435.      - Create a new SETUP1.EXE  
  436.    2. Shell out to DOS \VB\SETUPKIT\SETUP1 directory and compress  
  437.       SETUP1.EXE using the following command: 
  438.        \VB\SETUPKIT\KITFILES\COMPRESS SETUP1.EXE -R  
  439.    3. Copy your new SETUP1.EX_ onto your first distribution disk. 
  440.  
  441. -  Program manager Groups and Items may not install properly on systems  
  442.    using an alternate desktop, such as Norton Desktop for Windows 2.2.   
  443.    Refer to KB article Q108498 for details. 
  444.  
  445. - The error message "Sharing Violation on drive C:" may be displayed  
  446.    during the compression stage (Step 6) when using the Setup Wizard. 
  447.    This is caused by the combination of the file sharing utility  
  448.    SHARE.EXE, the compression utility COMPRESS.EXE, and the Setup Wizard  
  449.    tool SETUPWIZ.EXE. The problem occurs when the compression utility  
  450.    tries to open the files SETUPKIT.DLL, VBRUN300.DLL, COMMDLG.DLL,  
  451.    and/or CMDIALOG.VBX. 
  452.  
  453.    To work around this problem, copy SETUPKIT.DLL, VBRUN300.DLL,  
  454.    COMMDLG.DLL, and CMDIALOG.VBX from the \WINDOWS\SYSTEM directory to  
  455.    the directory where the SETUPWIZ.EXE file is located. Then  
  456.    SETUPWIZ.EXE and COMPRESS.EXE will not try to use the same files at  
  457.    the same time. Set the read-only attribute of all four files.  This  
  458.    can be done via File Manager in Windows or by using the Attrib  
  459.    command from the DOS prompt. 
  460.  
  461.    Users of Windows for Workgroups do not encounter this problem due to  
  462.    the fact that it uses VSHARE.386, an alternative file sharing utility 
  463.    to SHARE.EXE.  Users of Windows 3.1 can also use this utility by  
  464.    installing VSHARE.386 from file WW1000.EXE, which is included in  
  465.    SETUPK.EXE. 
  466.  
  467.    For more information on this Bug, use the following key words to  
  468.    query for and article in the knowledge base which address this  
  469.    specific issue: 
  470.      
  471.     SETUP WIZARD SHARING VIOLATION 
  472.  
  473.